package com.fen.demo016;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.support.GenericXmlApplicationContext;

/**
 * @description:
 * @author: lrf
 * @create: 2019-03-23
 **/
@ComponentScan(basePackages = "com.fen.demo016")
public class Main {

	public static void main(String[] args) {

//		ApplicationContext context = new AnnotationConfigApplicationContext(HelloWorldConfiguration.class);
//		UserDao userDao = context.getBean("userDao", UserDao.class);
//		userDao.sayDao();

		GenericXmlApplicationContext context = new GenericXmlApplicationContext();
		context.load("classpath:demo015/application.xml");
		context.refresh();
		ExampleSqEL example = context.getBean("example", ExampleSqEL.class);
		System.out.println("example = " + example);
	}
}
